﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="uclrLogin.ascx.cs" Inherits="includes_uclrLogin" %>

<script>
    function loginlayer() {
        document.getElementById('login2').style.display = 'block';
        document.getElementById('login1').style.display = 'none';
    }
    
    function viewDocProfile(docId) {
        window.location.href = "doctor/DoctorsDetails.aspx?id=" + docId;
        return false;
    }

    function showLogin() {
        if (document.getElementById("userLogin").style.display == 'none') {
            document.getElementById("userLogin").style.display = 'block';
        }
        else {
            document.getElementById("userLogin").style.display = 'none';
        }
    }

    function checkLogin(txtemail, txtpwd) {
        if (document.getElementById(txtemail).value == '') {
            alert("Please enter email id");
            return false;
        }
        if (document.getElementById(txtpwd).value == '') {
            alert("Please enter password");
            return false;
        }
        return true;
    }
</script>
  <asp:Label ID="lblError" runat="server" Visible="false" ForeColor="Red" Font-Bold="true" Style="float: right"></asp:Label>
<br />
<div  style="width:650px">
     <div >
    
                <div id="login1" style="border-spacing:0px;border-collapse:collapse;padding:5px 10px;border-radius:5px;">
                    <% if (Session["userID"].ToString() == "")
                       {
                    %>
                    <table style="background-color:#F4F4F4;width:100%;border-spacing:0px;border-collapse:collapse;padding:5px 10px;" >
                       
                        <tr>
                            <td style="height:auto;text-align:center" align="center">
                                <span onclick="showLogin()">
                                    <input type="button" class="buttonclass" value="Register Now" title="Register Now" />
                                  </span>
                                <div id="userLogin" style="display: none;" align="center">
                                    <table>
                                        <tr>
                                            <td>
                                                <a href="<%=Session["strHttps"]%>doctor/AccessProfile.aspx" class="buttonclass">Doctor Registration</a></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <a href="<%=Session["strHttps"]%>dentist/DentistAccessProfile.aspx" class="buttonclass">Dentist Registration</a></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <a href="<%=Session["strHttps"]%>patient/patient_registration.aspx" class="buttonclass">Patient Registration</a></td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td height="26" align="center">
                                <a href="<%=Session["strHttps"]%>doctor/doctorlogin.aspx"><strong>Already
                                                                have an account?</strong></a></td>
                        </tr>
                        <tr>
                            <td  align="center">
                                <a href="javascript:void(0)" onclick="loginlayer();" class="buttonclass">Log In Now</a></td>
                        </tr>
                        <tr>
                       <td height="35" align="center">
                                                
                          <asp:Button CssClass="buttonclass" ID="Button1" runat="server"  Text="Cancel" OnClientClick= "javascript:window.close();"/>
                        </td>
                        </tr>
                        
                    </table>
                    <%
                       }
                       else
                       {
                    %>
               
                    <% } %>
                </div>
                <div id="login2" style="display: none;">
                                      
                                <table style="background-color:#F4F4F4; width:500px; >
                                    <tr>
                                        
                                        <td height="40px"  style="width:180px; vertical-align:top">
                                            <asp:CheckBox Width="150px" ID="chkremberdoc" runat="server" Text="Remember Me" />
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                   <td height="22" align="right" style="width:180px;">
                                    </td>
                                    <td></td>
                                    </tr>
                                    
                                    <tr>
                                        <td height="22" align="right" style="width:180px;">Email ID
                                        </td>
                                        <td style="padding-left:5PX" >
                                            <asp:TextBox ID="txtDocEmail" runat="server" CssClass="form-txt" Style="width: 200px" Height="20px"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td height="22" align="right" style="width:180px">Password</td>
                                      <td style="padding-left:5PX" >
                                            <asp:TextBox ID="txtDocPass" runat="server" CssClass="form-txt" Style="width: 200px" Height="20px"
                                                TextMode="Password"></asp:TextBox></td>
                                    </tr>
                                    
                                    <tr>
                                        <td  style="width:180px">&nbsp;</td>
                                        <td style="padding-left:5PX" >
                                          <div class="styled-select" style="width: 140px"> 
                                           <asp:DropDownList ID="rbtnlDoctorType"  runat="server" Width="140px">
                                                <asp:ListItem Value="Doctor">As a Doctor</asp:ListItem>
                                                <asp:ListItem Value="Dentist">As a Dentist</asp:ListItem>
                                                <asp:ListItem Value="Patient">As a User</asp:ListItem>
                                            </asp:DropDownList></div>
                                        </td>
                                    </tr>
                                     <tr>
                                   <td height="22" align="right" style="width:180px;">
                                    </td>
                                    <td></td>
                                    </tr>
                                    <tr>
                                    
                                       <td height="22" style="width:180px">&nbsp;</td>
                                        <td style="padding-left:5PX" >
                                          <asp:Button CssClass="buttonclass" ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="Login" />
                                            <input type="button" class="buttonclass"  OnClick="Reglayer()" value="Cancel" />
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="22" style="width:150px">&nbsp;</td>
                                        <td>
                                            <ul style="list-style-type: square; padding: 0;">
                                             
                                                    <asp:LinkButton ID="lnkbtnForgetPass" runat="server" Text="Forgot Password" CssClass="bluelink1"
                                                        OnClick="lnkbtnForgetPass_Click"></asp:LinkButton></li>
                                              
                                            </ul>
                                        </td>
                                    </tr>
                                </table>
                          
                    <%--</form>--%>
                </div>
           
      </div>
    &nbsp;<div class="cl"></div>

</div>

<br />
<% if (Session["ShowLayer"].ToString() == "True")
       Response.Write("<script language='javascript'>loginlayer()</script>");
%>
